projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ac51e
)
* src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.
author
Po Lu
<luangruo@yahoo.com>
Tue, 22 Mar 2022 08:26:11 +0000
(16:26 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 22 Mar 2022 08:27:23 +0000
(16:27 +0800)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index be1dc9e3c98619ffa3bcb39eb8c363572708fb56..a7d844550241db98f538014578c788d25633665e 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-1020,7
+1020,7
@@
x_dnd_get_window_proto (struct x_display_info *dpyinfo, Window wdesc)
value = (int) *(Atom *) tmp_data;
XFree (tmp_data);
- return
(int) value
;
+ return
min (X_DND_SUPPORTED_VERSION, (int) value)
;
}
static void